package cn.edu.sdjzu.xg21.service;

import cn.edu.sdjzu.xg21.domain.Teacher;
import cn.edu.sdjzu.xg21.exception.BysjException;
import cn.edu.sdjzu.xg21.util.Condition;
import cn.edu.sdjzu.xg21.util.Pagination;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherServiceInterface {
    public Teacher find(int id) throws SQLException, BysjException;
    public Collection<Teacher> findAll(List<Condition> conditions_json) throws SQLException, BysjException;
    public Collection<Teacher> findAll(List<Condition> conditionList,Pagination pagination) throws SQLException, BysjException;
//    public String add(Teacher teacher) throws SQLException,BysjException;
    public String delete(int id) throws SQLException,BysjException;
//    public String update(Teacher teacher) throws SQLException, BysjException;
}
